package com.santiao.fuel.utils.UnitConverter;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;



public class CommentUnitUtils2 {



    public CommentUnitUtils2() {



    }

    public List<String> times = new ArrayList<>();
    public List<String> timeSpace = new ArrayList<>();



    public CommentUnitUtils2(List<String> times) {
        Collections.addAll(this.times , "年" , "季度" , "月", "周" , "天", "小时" , "分钟", "毫秒" , "微秒" , "纳秒");
        Collections.addAll(this.times , "1" , "4" , "3", "0.076712" , "天", "小时" , "分钟", "毫秒" , "微秒" , "纳秒");
    }

    public   BigDecimal TimeUnitConvert(String fromUnit, String endUnit , BigDecimal value) {

        int fromUnitIndex = this.times.indexOf(fromUnit);
        int endUnitIndex = this.times.indexOf(endUnit);


        return value;
    }

}
